type IFormType = "input" | "password" | "select" | "datepicker";

export interface IFormItem {
  field: string;
  default?: any;
  type: IFormType;
  label: string;
  rules?: any[];
  placeholder?: string;
  //专属select的数据
  options?: any[];
  // 其他的一些属性，可参考elementPlus的各表单项属性直接名字相同即可
  otherOptions?: any;
}

export interface Iform {
  formItems: IFormItem[];
  labelWidth?: string | number;
  itemStyle?: any;
  colLayout?: any;
  isFotter?: boolean;
  FormTitle?: string;
  isSearch?: boolean;
  gutter?: string | number;
}
